package com.example.CarManagement.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 通知表
 * </p>
 *
 * @author 徐佳彪
 * @since 2025-07-08
 */
@TableName("c_notification")
public class Notification implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 通知唯一标识，主键
     */
    private String id;

    /**
     * 通知标题（如审批结果、派车通知、任务状态更新等）
     */
    private String title;

    /**
     * 通知内容
     */
    private String content;

    /**
     * 通知创建时间
     */
    private LocalDateTime createTime;

    /**
     * 通知派发的用户ID，0表示全局通知
     */
    private String userId;

    /**
     * 是否删除（0:未删除，1:已删除）
     */
    private Boolean deleted;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return "Notification{" +
            "id = " + id +
            ", title = " + title +
            ", content = " + content +
            ", createTime = " + createTime +
            ", userId = " + userId +
            ", deleted = " + deleted +
        "}";
    }
}
